// components/authorizedAddress/authorizedAddress.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
    //取消
    handleCancel(){
      this.triggerEvent('onArrshow',false)
    },
    handleCallback(e){
      console.log(e.detail.authSetting['scope.userLocation'])
      if (e.detail.authSetting['scope.userLocation']){
        this.triggerEvent('authorizedAddress')
        this.triggerEvent('onArrshow',false)
       }else{
        this.triggerEvent('onArrshow',true)
      }
      
    },
  }
})
